#include <nice2d/components/tag.h>

Tag::Tag(NodePointer object):
    Component(object)
{
}

Tag::~Tag()
{
}

void Tag::setTag(const std::string &newTag)
{
    tag = newTag;
}

std::string Tag::getTag() const
{
    return tag;
}

bool Tag::compare(std::shared_ptr<Tag> other)
{
    return other && tag == other->getTag();
}

bool Tag::compare(const std::string &tag)
{
    return tag == getTag();
}
